<div class="card">
    <h2  class="card-header" data-translate="zhserverApp.doctor.home.title">Doctors</h2>
    <div class="card-block">

        <jhi-alert></jhi-alert>
        <br/>
        <div class="table-responsive">
            <table class="jh-table table table-striped">
                <thead>
                <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                    <th jh-sort-by="id"><span data-translate="global.field.id">ID</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="workingyears"><span data-translate="zhserverApp.doctor.workingyears">Workingyears</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="login"><span data-translate="zhserverApp.doctor.login">Login</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="country"><span data-translate="zhserverApp.doctor.country">Country</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="school"><span data-translate="zhserverApp.doctor.school">School</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="resume"><span data-translate="zhserverApp.doctor.resume">Resume</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="position"><span data-translate="zhserverApp.doctor.position">Position</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="hospital"><span data-translate="zhserverApp.doctor.hospital">Hospital</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="department"><span data-translate="zhserverApp.doctor.department">Department</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="doctorname"><span data-translate="zhserverApp.doctor.doctorname">Doctorname</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="headimage"><span data-translate="zhserverApp.doctor.headimage">Headimage</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th jh-sort-by="flag"><span data-translate="zhserverApp.doctor.flag">Flag</span> <span class="glyphicon glyphicon-sort"></span></th>
                    <th></th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="doctor in vm.doctors track by doctor.id">
                    <td><a ui-sref="zhDoctor-detail({id:doctor.id})">{{doctor.id}}</a></td>
                    <td>{{doctor.workingyears}}</td>
                    <td>{{doctor.login}}</td>
                    <td>{{doctor.country}}</td>
                    <td>{{doctor.school}}</td>
                    <td>{{doctor.resume}}</td>
                    <td>{{doctor.position}}</td>
                    <td>{{doctor.doctorname}}</td>
                    <td>{{doctor.headimage}}</td>
                    <td>{{doctor.flag}}</td>
                    <td>
                        <a ui-sref="zhDepartment-detail({id:doctor.department.id})">{{doctor.department.department}}</a>
                    </td>
                    <td>
                        <a ui-sref="zhHospital-detail({id:doctor.hospital.id})">{{doctor.hospital.hospital}}</a>
                    </td>
                    <td>
                        <a ui-sref="zhAlgorithm-detail({id:doctor.algorithm.id})">{{doctor.algorithm.algorithmName}}</a>
                    </td>
                    <td class="text-right">
                        <div class="btn-group flex-btn-group-container">
                            <button type="submit"
                                    ui-sref="zhDoctor-detail({id:doctor.id})"
                                    class="btn btn-info btn-sm">
                                <span class="glyphicon glyphicon-eye-open"></span>
                                <span class="hidden-xs hidden-sm" data-translate="entity.action.view"></span>
                            </button>
                            <button type="submit"
                                    ng-click="vm.pass(doctor)"
                                    class="btn btn-primary btn-sm">
                                <span class="glyphicon glyphicon-pencil"></span>
                                <span class="hidden-xs hidden-sm" >通过</span>
                            </button>
                            <button type="submit"
                                    ng-click="vm.refuse(doctor.id)"
                                    class="btn btn-danger btn-sm">
                                <span class="glyphicon glyphicon-remove-circle"></span>
                                <span class="hidden-xs hidden-sm" >拒绝</span>
                            </button>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

    </div>
</div>
